package com.greateamd.timetableasy.client.services.course;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.greateamd.timetableasy.domain.Course;
import com.greateamd.timetableasy.domain.StudyPeriod;
import com.greateamd.timetableasy.domain.exceptions.DBServerSideException;

@RemoteServiceRelativePath("course.rpc")
public interface CourseService extends RemoteService {

	boolean remove(Course course) throws DBServerSideException ;
	boolean save(Course course)throws DBServerSideException;
	boolean update(Course course) throws DBServerSideException;
	Course find(int id) throws DBServerSideException;
	List<Course> getAll() throws DBServerSideException;
	List<Course> getAllOfStudyPeriod(StudyPeriod sp)throws DBServerSideException;
}
